package com.example.jobback.req.common.page;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @ClassName: PageReq
 * @Description:分页查询通用请求体
 * @Author: lhb
 * @Date: 2025/7/4
 */
@Data
@Schema(title = "分页查询通用请求体")
public class PageReq {
    @Schema(title = "页数")
    @NotNull(message="页数")
    private int page;
    @Schema(title = "每一页元素数")
    @NotNull(message="每一页元素数不为空")
    private int size;
    @Schema(title = "搜索内容")
    @NotNull(message="不为null，可以为空")
    private String content;
}
